#!/bin/bash
basedir=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
echo "base dir is $basedir"
cd $basedir

sh gensrc.sh

mkdir build
cd build
cmake ..
make
make install